/**
 * Copyright ©2012-2018 HopeHaiyang Corporation, All Rights Reserved
 * http://www.wuhanhope.com
 */
package hope.platform.data.domain;

import hope.platform.data.domain.entity.WarningMethod;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * class info
 *
 * @author hujia
 *         Create at 2018/7/20 14:32
 */
@Document
@Data
@NoArgsConstructor
@AllArgsConstructor
public class WarningKind implements Serializable {

    private final static long serialVersionUID = 1L;

    private String id;

    @Indexed(unique = true)
    private String warningType;

    private Integer interval;

    private WarningMethod method;

    private Date gmtCreate;

    private Date gmtModified;
}
